<template>
  <div>
    <button @click="showModal = true">弹出对话框</button>
    <Dialog @close="showModal = false" width="50%" :open="showModal"> 这是内容 </Dialog>
  </div>
</template>

<script setup lang="ts">
const showModal = ref(false)
</script>

<style scoped lang="scss"></style>
